﻿#region Using declarations
using System;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Indicator;
using NinjaTrader.Strategy;
#endregion

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
    /// <summary>
    /// This file holds user defined strategy method.
    /// </summary>
    partial class Strategy
    {
        ///Returns the highest value of the listed inputs.
        public double MaxList(double[] list)
        {
            double max = 0;
            foreach (double number in list)
                if (number > max)
                    max = number;
            return max;
        }

    }
}
